#ifndef STRINGPROPERTY_H
#define STRINGPROPERTY_H
#include "StomperLib/Controls/Property/TextPropertyBase.h"
namespace StomperLib {
namespace Controls {
namespace Property {
class StringProperty : public TextPropertyBase {
 public:

  GWEN_CONTROL_INLINE( StringProperty, TextPropertyBase )
  {
  }
  bool CopyValueToData( )
  {
    if (this->m_TextBox->GetText( ).Get( ).empty( ))
      return false;
    (*(std::string*) this->m_DataPointer) = this->m_TextBox->GetText( ).c_str( );
    return true;
  }

  void CopyDataToValue( )
  {
    this->m_TextBox->SetText( *(std::string*) this->m_DataPointer, false );
  }

};

}
}
}
#endif // ifndef STRINGPROPERTY_H